﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlateAction : MonoBehaviour
{
    private Animator anim;

    private void Awake()
    {
        anim = GetComponent<Animator>();
    }


    private void OnCollisionEnter2D(Collision2D collision)
    {
        anim.SetBool("Collision", true);
    }

    public void OverAnim()
    {
        //Debug.Log("knock");
        anim.SetBool("Collision", false);
    }


    //private void OnCollisionExit2D(Collision2D collision)
    //{
    //    anim.SetBool("Collision", false);
    //}



}
